import { _decorator, Component, Node, randomRange, tween, v3 } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('House')
export class House extends Component {

    start() {
        tween(this.node)
            .delay(randomRange(0.5, 2))
            .by(0.2, { scale: v3(0, 0.1) })
            .by(0.2, { scale: v3(0, -0.1) })
            .union().repeatForever().start();
    }

    update(deltaTime: number) {

    }
}


